package com.zpxt.zpxt.dao;

import com.zpxt.zpxt.entity.Company;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author:hjx
 * @Description:
 * @Date: Created in 14:55 2018/4/4
 * @Modified By:
 */
public interface CompanyRepository extends JpaRepository<Company, Long>{
    List<Company> findByCode(String code);
    List<Company> findByName(String name);
    List<Company> findByEmail(String email);
}
